package org.mcflier.appuntamento.data.model;

import org.mcflier.appuntamento.data.model.abstracts.AbstractAlternativeTitle;
import org.mcflier.appuntamento.i18n.Language;

public class AlternativeTitle extends AbstractAlternativeTitle {

	private String alternativeTitle;
	private Language language;
	
	public AlternativeTitle(Language language, String alternativeTitle) {
		super(language, alternativeTitle);
	}

	@Override
	public Language getLanguage() {
		return this.language;
	}

	protected void setLanguage(Language language) {
		this.language = language;
	}

	@Override
	public String getAlternativeTitle() {
		return this.alternativeTitle;
	}

	protected void setAlternativeTitle(String alternativeTitle) {
		this.alternativeTitle = alternativeTitle;
	}
	
	public String toString(){
		return this.language.getCode()+" "+this.alternativeTitle;
	}
}
